﻿using System;
using System.Xml.Linq;

namespace Facade.PageMaker
{
    class Database
    {
        private Database()
        {
        }

        public static XElement GetProperties(string dbName)
        {
            string fileName = dbName + ".xml";
            XElement xml = null;
            
            try
            {
                xml = XElement.Load(dbName);
            }
            catch
            {
                Console.WriteLine("Warning: " + fileName + " is not found.");
            }

            return xml;
        }
    }
}
